import Vue from 'vue'
import Router from 'vue-router'

import svgtest from '@/components/Svgtest'
import mobile from '@/components/Hello'
import socket from '@/components/socket'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'svgtest',
      component: svgtest
    },
    {
      path: '/mobile',
      name: 'mobile',
      component: mobile
    },
    {
      path: '/socket',
      name: 'scoket',
      component: socket
    }
  ]
})
